package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.BackstageArticleAddDTO;
import com.sky.dto.BackstageArticleQueryDTO;
import com.sky.dto.BackstageArticleUpdateDTO;
import com.sky.vo.AnnouncementsVO;
import com.sky.vo.ArticleInfoVO;
import com.sky.vo.BackstageArticleSearchVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Mapper
public interface  BackstageArticleMapper {

    Page<AnnouncementsVO> getArticleList(BackstageArticleQueryDTO backstageArticleQueryDTO);

    ArticleInfoVO getArticleById(Integer id);

    void updateArticle(BackstageArticleUpdateDTO backstageArticleUpdateDTO);

    void addArticle(BackstageArticleAddDTO backstageArticleAddDTO);

    void deleteArticle(List<Integer> ids);

    String getArticleByTitle(Integer id);

    List<BackstageArticleSearchVO> getArticleByContent(String title);
}
